"""
# 请求方法 url位置
POST https://api5-normal-c-lq.amemv.com/aweme/v1/comment/publish/?uuid=510000000240831&ts=1651067490&_rticket=1651067491610& HTTP/1.1

headers位置
Host: api5-normal-c-lq.amemv.com
Connection: keep-alive
Content-Length: 250
Cookie: uid_tt=45ff60f8e6f9b05ea164a0062756080b; sid_tt=3675311f016a43dc9f237dfacfc8fd30; sessionid=3675311f016a43dc9f237dfacfc8fd30; install_id=149954411628327; ttreq=1$9be5a54a38a57b255c96bfd0cd528c977a36adfe; sid_guard=3675311f016a43dc9f237dfacfc8fd30%7C1650713219%7C5184000%7CWed%2C+22-Jun-2022+11%3A26%3A59+GMT; passport_csrf_token=3a2c144fd71c084b01908eb1c84e718f; passport_csrf_token_default=3a2c144fd71c084b01908eb1c84e718f; odin_tt=e9a3aac3596a875e00d9e5e1ae0188880e58bbee87ed7835cae3a2d51a31b66c74a67b396671af2c300bd83bbd22cef283f5e6e41c59dc1da28efe70bfd370a303a4bde7fb68f6c4c93cca2f6a97f3e0
x-tt-dt: AAA4W44N2YPZLWVIUNWKLZ62W7UTDLYROUIOYS4X6LQKJHYV4ZLE54QIT6EWZ2CN4QGY75S6WOUAU2CA3WKS5MYAG4YHQEHHEP3BB4CC3DORCG6KJO3S4YREYQRZRI2T222BVFUE7Q7YBI2ZBKJWQIQ
passport-sdk-version: 18
X-Tt-Token: 003675311f016a43dc9f237dfacfc8fd300271e4ff2df2aef7ad52149c315524569f22a8bf90045a472ff28626fdab9cf2a5ea2d2ec4d3492274733064510aac45aa35f0ab7adc2e96ef31ec78cbfff7902536bd59e6f536906d91263a9ea1b219b3d-1.0.1
sdk-version: 2
X-SS-REQ-TICKET: 1651067491613
x-bd-kmsv: 1
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-SS-STUB: EB9456224DAD7B479F4B0E0F0DC86C74
X-SS-DP: 1128
x-tt-trace-id: 00-6b4a96aa0d46861fad802ad317540468-6b4a96aa0d46861f-01
User-Agent: com.ss.android.ugc.aweme/150301 (Linux; U; Android 6.0.1; zh_CN; MI 5s; Build/V417IR; Cronet/TTNetVersion:539f4bcf 2021-01-18 QuicVersion:47946d2a 2020-10-14)
Accept-Encoding: gzip, deflate, br
X-Argus: VXgSCsIGrqYbAuFcPEByoHJ9Raqmx55wSVJCeSfcXQoji9+8ySGK2lvzrt3DaQmUwVA32YNVP7JBn5RteIyQHLBOpyH8DA3xfu9moSsUHsE9QhCUljauEDPWXHrQBDQEuSRVB84xb1/i6rkIm6Oc5UBmzxo7WOXqerY2trJQ4waNrYVSpW53m1bKe/W89Nso4xTqcQTeVM7aw/5QgQ9eMKjEwRJE2ALLhvZ0qOIVa65q2bH7r9NXrkP/GD+2OTZ0ySHENrKVAiez7WPbJtjtecBuvus71Zf0QdBR0KLWl3709NC71erocO+QGfjE8EGNaTl2ul9jBDH9WSIyOanaDaAn
X-Gorgon: 040400424101023ab7148e0a947f8ee47f2b4d11d21b0bff6ddc
X-Khronos: 1651067491
X-Ladon: CxtuA5AO5ixXdiglqrA9mmAIqxTY3HVrUx6RB08HpHzB1MpJ
X-Tyhon: q3PQOye44xUTt+sEBqChKAayqSoxzaVAE8n311U=
x-common-params-v2: ac=wifi&aid=1128&appTheme=dark&app_name=aweme&app_type=normal&cdid=b6579ae6-4160-4f04-861a-49f85bc91792&channel=aweGW&cpu_support64=false&device_brand=Xiaomi&device_id=1240669936419501&device_platform=android&device_type=MI+5s&dpi=270&host_abi=armeabi-v7a&iid=149954411628327&language=zh&manifest_version_code=150301&minor_status=0&openudid=5349b63325deaca4&os_api=23&os_version=6.0.1&resolution=810*1440&ssmix=a&update_version_code=15309900&version_code=150300&version_name=15.3.0

# data参数
aweme_id=7088288162287488264&text=%E6%98%AF%E9%AB%98%E8%A1%97%E6%97%8B%E5%90%97&text_extra=%5B%5D&is_self_see=0&sticker_id=&sticker_source=0&sticker_width=0&sticker_height=0&channel_id=0&city=110000&action_type=0&comment_source=0&copied_cid=&ad_info=

"""
import requests

url = "https://api5-normal-c-lq.amemv.com/aweme/v1/comment/publish/?uuid=510000000240831&ts=1651067490&_rticket=1651067491610&"

headers = {
    "Host": "api5-normal-c-lq.amemv.com",
    "Connection": "keep-alive",
    "Content-Length": "250",
    "Cookie": "uid_tt=45ff60f8e6f9b05ea164a0062756080b; sid_tt=3675311f016a43dc9f237dfacfc8fd30; sessionid=3675311f016a43dc9f237dfacfc8fd30; install_id=149954411628327; ttreq=1$9be5a54a38a57b255c96bfd0cd528c977a36adfe; sid_guard=3675311f016a43dc9f237dfacfc8fd30%7C1650713219%7C5184000%7CWed%2C+22-Jun-2022+11%3A26%3A59+GMT; passport_csrf_token=3a2c144fd71c084b01908eb1c84e718f; passport_csrf_token_default=3a2c144fd71c084b01908eb1c84e718f; odin_tt=e9a3aac3596a875e00d9e5e1ae0188880e58bbee87ed7835cae3a2d51a31b66c74a67b396671af2c300bd83bbd22cef283f5e6e41c59dc1da28efe70bfd370a303a4bde7fb68f6c4c93cca2f6a97f3e0",
    "x-tt-dt": "AAA4W44N2YPZLWVIUNWKLZ62W7UTDLYROUIOYS4X6LQKJHYV4ZLE54QIT6EWZ2CN4QGY75S6WOUAU2CA3WKS5MYAG4YHQEHHEP3BB4CC3DORCG6KJO3S4YREYQRZRI2T222BVFUE7Q7YBI2ZBKJWQIQ",
    "passport-sdk-version": "18",
    "X-Tt-Token": "003675311f016a43dc9f237dfacfc8fd300271e4ff2df2aef7ad52149c315524569f22a8bf90045a472ff28626fdab9cf2a5ea2d2ec4d3492274733064510aac45aa35f0ab7adc2e96ef31ec78cbfff7902536bd59e6f536906d91263a9ea1b219b3d-1.0.1",
    "sdk-version": "2",
    "X-SS-REQ-TICKET": "1651067491613",
    "x-bd-kmsv": "1",
    "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
    "X-SS-STUB": "EB9456224DAD7B479F4B0E0F0DC86C74",
    "X-SS-DP": "1128",
    "x-tt-trace-id": "00-6b4a96aa0d46861fad802ad317540468-6b4a96aa0d46861f-01",
    "User-Agent": "com.ss.android.ugc.aweme/150301 (Linux; U; Android 6.0.1; zh_CN; MI 5s; Build/V417IR; Cronet/TTNetVersion:539f4bcf 2021-01-18 QuicVersion:47946d2a 2020-10-14)",
    "X-Argus": "VXgSCsIGrqYbAuFcPEByoHJ9Raqmx55wSVJCeSfcXQoji9+8ySGK2lvzrt3DaQmUwVA32YNVP7JBn5RteIyQHLBOpyH8DA3xfu9moSsUHsE9QhCUljauEDPWXHrQBDQEuSRVB84xb1/i6rkIm6Oc5UBmzxo7WOXqerY2trJQ4waNrYVSpW53m1bKe/W89Nso4xTqcQTeVM7aw/5QgQ9eMKjEwRJE2ALLhvZ0qOIVa65q2bH7r9NXrkP/GD+2OTZ0ySHENrKVAiez7WPbJtjtecBuvus71Zf0QdBR0KLWl3709NC71erocO+QGfjE8EGNaTl2ul9jBDH9WSIyOanaDaAn",
    "X-Gorgon": "040400424101023ab7148e0a947f8ee47f2b4d11d21b0bff6ddc",
    "X-Khronos": "1651067491",
    "X-Ladon": "CxtuA5AO5ixXdiglqrA9mmAIqxTY3HVrUx6RB08HpHzB1MpJ",
    "X-Tyhon": "q3PQOye44xUTt+sEBqChKAayqSoxzaVAE8n311U=",
    "x-common-params-v2": "ac=wifi&aid=1128&appTheme=dark&app_name=aweme&app_type=normal&cdid=b6579ae6-4160-4f04-861a-49f85bc91792&channel=aweGW&cpu_support64=false&device_brand=Xiaomi&device_id=1240669936419501&device_platform=android&device_type=MI+5s&dpi=270&host_abi=armeabi-v7a&iid=149954411628327&language=zh&manifest_version_code=150301&minor_status=0&openudid=5349b63325deaca4&os_api=23&os_version=6.0.1&resolution=810*1440&ssmix=a&update_version_code=15309900&version_code=150300&version_name=15.3.0"

}
data = "aweme_id=7088288162287488264&text=%E6%98%AF%E9%AB%98%E8%A1%97%E6%97%8B%E5%90%97&text_extra=%5B%5D&is_self_see=0&sticker_id=&sticker_source=0&sticker_width=0&sticker_height=0&channel_id=0&city=110000&action_type=0&comment_source=0&copied_cid=&ad_info="

# datasss = {
#               "aweme_id": "7088288162287488264",
#               "text=%E6%98%AF%E9%AB%98%E8%A1%97%E6%97%8B%E5%90%97",
#           "text_extra":"%5B%5D",
#           "is_self_see=0",
#           "sticker_id=",
#           "sticker_source=0",
#           "sticker_width=0",
#           "sticker_height=0",
#           "channel_id=0",
#           "city=110000",
#
# }

response=requests.post(url=url,headers=headers,data=data)



